FROM ubuntu:12.04
COPY sources.list /etc/apt/sources.list

# 构建容器
RUN apt-get update \
        && apt-get install -y make bison gcc-4.4 g++-4.4 zip unzip g++-4.4-multilib gcc-4.4-multilib lib32z-dev libc6-dev-i386 flex openjdk-6-jdk \
        && apt-get install -y lib32ncurses5-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc gperf perl python-libxml2 \
        && update-alternatives  --install /usr/bin/g++ g++ /usr/bin/g++-4.4 100 \
        && update-alternatives  --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 100 \
        && apt-get clean && rm -rf /var/lib/apt/list/*
